package com.wy2.springcloud.sample.rabbitmq.mqbinder;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
 
/**
 * Created by zhisheng_tian on 2018/1/23
 */
@Component
public class RabbitMQServer {
 
    @RabbitListener(queues = "ordertopic")
    public void receive(String message) {
        System.out.println("收到的 message 是：" + message);
    }
}